package com.xuecheng.content.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.content.model.dto.CourseTeacherDto;
import com.xuecheng.content.model.po.CourseTeacher;

import java.util.List;

public interface CourseTeacherService extends IService<CourseTeacher> {

    /**
     * 根据课程id查询师资信息
     *
     * @param courseId
     * @return
     */
    List<CourseTeacherDto> getByCourseId(Long courseId);

    /**
     * 保存师资信息
     *
     * @param courseTeacherDto
     * @return
     */
    CourseTeacherDto saveCourseTeacher(CourseTeacherDto courseTeacherDto);

    /**
     * 删除师资信息
     *
     * @param courseId
     * @param id
     */
    void deleteCourseTeacherById(Long courseId, Long id);
}
